home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr - manages parallel operations
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- ilMpNode
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <il/ilMpManager.h>
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ilMpManager is derived from ilMpNode and manages an asynchronous,
- parallel operation. The operation is broken down into concurrently
- executing requests, represented by ilMpRequest (also derived from
- ilMpNode).
-
- CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr
-
- ilMpManager(ilMpNode* parent=NULL)
-
- SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn mmmmeeeetttthhhhooooddddssss
-
- ilStatus start(ilMpManager** pMgr)
- virtual void go()
- ilStatus wait()
- int isDone()
- void markForDelete()
- void addCompletionCallback(ilCallback* callBack,
- int flags=ilMpDeleteMgr)
-
- AAAAbbbboooorrrrttttiiiinnnngggg
-
- ilStatus abort(int flags=0)
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr(((())))
-
- ilMpManager(ilMpNode* parent=NULL)
-
-
- Constructs an ilMpManager with the indicated _p_a_r_e_n_t. When all
- dependent request of this manager are completed the parent will be
- notified. Derived classes should add their dependent request in the
- contructor.
-
- aaaabbbboooorrrrtttt(((())))
-
- ilStatus abort(int flags=0)
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr((((3333))))
-
-
-
- This method aborts all pending operations for this manager and (by
- default) waits for any in progress operations to complete. This is
- only allowed on top-level managers (those with no parent) that have
- not been marked for deletion; an error status will be returned
- otherwise.
-
- The _f_l_a_g_s parameter is formed from the logical OR of the following
- values:
-
- ilMpAbortNoWait If set this abort will be initiated and then
- immediately return without waiting for the
- operation to complete; the wwwwaaaaiiiitttt() method can be
- used to wait for completion later.
-
- ilMpDeleteMgr If set then either mark the manager for deletion
- (if we didn't wait) or delete it outright.
-
- aaaaddddddddCCCCoooommmmpppplllleeeettttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkk(((())))
-
- void addCompletionCallback(ilCallback* callBack,
- int flags=ilMpDeleteMgr)
-
-
- This method adds a call back, _c_a_l_l_B_a_c_k, to be called when all
- dependencies are completed, by default this implicitly marks the
- manager for deletion. The call back can also be automatically
- deleted when the manager completes, using the flags parameter.
- Possible values for flags are:
-
- ilMpDeleteMgr mark the manager for deletion
-
- ilMpDeleteCb delete the callback after it executes.
-
- ggggoooo(((())))
-
- virtual void go()
-
-
- This method allows requests added in the constructor to start
- processing; this must be called after construction (not in the
- contructor) to ensure that the manager's virtuals (and derived class
- contructors) are properly initialized before the reqeusts try to
- reference their parent.
-
- iiiissssDDDDoooonnnneeee(((())))
-
- int isDone()
-
-
- This method returns TRUE if all of this mananger's dependents have
- completed; FALSE otherwise.
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllMMMMppppMMMMaaaannnnaaaaggggeeeerrrr((((3333))))
-
-
-
- mmmmaaaarrrrkkkkFFFFoooorrrrDDDDeeeelllleeeetttteeee(((())))
-
- void markForDelete()
-
-
- This method marks this manager to be deleted when all dependencies
- are completed. Once this method is called the manager should be
- treated as if it has been deleted (i.e. don't reference it anymore).
-
- ssssttttaaaarrrrtttt(((())))
-
- ilStatus start(ilMpManager** pMgr)
-
-
- This is a convenience method that calls ggggoooo() and returns the address
- of this manager via _p_M_g_r if it is non-NULL. This method then
- determines whether the operation is synchronous or not by checking
- to see if both this manager's parent and _p_M_g_r are NULL. If _p_M_g_r is
- NULL this manager will be marked for deletion unless its parent is
- also NULL in which case this is assumed to be a synchronous
- operation and wwwwaaaaiiiitttt() will be called.
-
- wwwwaaaaiiiitttt(((())))
-
- ilStatus wait()
-
-
- This method waits for all of this manager dependencies to complete.
- Don't call this on a manager that's been marked for deletion.
-
- IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm iiiillllMMMMppppNNNNooooddddeeee
- addProcessingTime(), clearStatus(), getDepth(), getParent(),
- getProcessingTime(), getState(), getStatus(), getTimingWeight(),
- inhibitAbort(), isAborting(), setStatus(), setTimingWeight()
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ilMpNode(3), ilMpRequest(3)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-